#ifndef CLASS_NAME_DEF_H
#define CLASS_NAME_DEF_H



#define PTM_RATIO		30.0f

#include "SpriteExt.h"

inline CCRect getGlobalRect(CCNode* pNode)
{
	CCSize size = pNode->getContentSize();
	CCPoint globalPos = pNode->convertToWorldSpace(CCPoint(0, 0));
	return CCRect(globalPos.x-size.width*0.5f, globalPos.y-size.height*0.5f, size.width, size.height);
}
#endif